var vm = new Vue({
    el: "#app",
    data: {
        isActive: true,
        error: null,
        activeClass: 'active',
        errorClass: 'text-danger'
    },
    computed: {
        classObjectCom: function () {
            return {
                active: this.isActive && !this.error,
                'text-danger': this.error && this.error.type === 'fatal'
            }
        }
    }
})